<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-7-25
 * Time: 下午9:36
 */
/* @var $this yii\web\View */
/**
 * @var \home\models\FormResetPassword $form_reset_password
 */
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Html;

$this->title = "重置密码";
?>

<div class="site-reset-password">
    <div class="row">
        <div class="col-sm-5">
            <?php $form = ActiveForm::begin(); ?>
            <?=$form->field($form_reset_password, 'email')->textInput(['placeholder' => '邮箱']) ?>
            <?=$form->field($form_reset_password, 'password')->passwordInput(['placeholder' => '密码']) ?>
            <?=$form->field($form_reset_password, 'repassword')->passwordInput(['placeholder' => '重复密码']) ?>
            <?= $form->field($form_reset_password, 'code')->widget(\yii\captcha\Captcha::class) ?>
            <div class="form-group">
                <?= Html::submitButton("发送重置密码链接", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
                <?= Html::resetButton("重置", ['class' => 'btn btn-warning']) ?>
            </div>
            <?php ActiveForm::end(); ?>

            <p>
                <?=Html::a("重新发送激活链接", ['site/resend-active-link-for-email']) ?>
            </p>
        </div>
    </div>
</div>
